#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>

//signal server funtion
static void int_handler(int s)
{
	//print a '!'
	write(1, "!",1);
}

int main()
{
	int i;

	signal(SIGINT, int_handler);
	//print 10 '*'
	for(i = 0; i < 10; i ++)
	{
		write(1, "*", 1);
		sleep(1);
	}

	exit(0);
}
